body {
  margin: 0;
  padding: 0;
  max-width: 540px;
  min-width: 320px;
  margin: 0 auto;
  overflow-x: hidden;
  /* 点击的样式透明，统一。因为不同手机的展示不一样，所以都去掉 */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  background: #f4f4f4;
}
body,
html {
  font: normal 16px/1.5 PingFangSC-regular, Tahoma, Lucida Grande, Verdana,
    Microsoft Yahei, STXihei, hei;
}

a {
  text-decoration: none;
}
div {
  box-sizing: border-box;
}
ul {
  list-style: none;
  padding: 0%;
}

/* 搜索模块的样式 */
.search {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  min-width: 320px;
  max-width: 540px;
  width: 100%;
  height: 44px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
}
.search .search-input {
  height: 22px;
  line-height: 22px;
  color: #666;
  padding-left: 25px;
  border-radius: 10px;
  margin: 7px 10px;
  border: 1px solid #ccc;
  flex: 1;
}

.search .user {
  width: 32px;
  height: 32px;
  background-size: 32px;
  background-image: url("https://webresource.c-ctrip.com/NFES/html5/1636624442314/_next/serverStatic/img/signin-b.png");
  margin-right: 5px;
}

/* 广告图部分 */
.focus img {
  padding-top: 44px;
  width: 100%;
}

/* d导航栏的部分 */
.local-nav {
  display: flex;
  height: 64px;
  margin: 3px 4px;
  border-radius: 8px;
}
.local-nav li {
  flex: 1;
}
.local-nav li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  height: 100%;
}
.local-nav li a span[class^="local-nav-icon-icon"] {
  background: url("https://webresource.c-ctrip.com/NFES/html5/1636624442314/_next/serverStatic/img/nav.png")
    no-repeat 0px -84px;
  background-size: 28px auto;
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
}
.local-nav li a span.local-nav-icon-icon2 {
  background-position: 0 -168px;
}
.local-nav li a span.local-nav-icon-icon3 {
  background-position: 0 -364px;
}
.local-nav li a span.local-nav-icon-icon4 {
  background-position: 0 -140px;
}
.local-nav li a span.local-nav-icon-icon5 {
  background-position: 0 -28px;
}
.local-nav li a span {
  color: #fff;
}
.local-nav li {
  margin-left: 1px;
  text-align: center;
}
.local-nav li:first-child {
  margin-left: 0;
  border-top-left-radius: 8px;
  background-image: linear-gradient(180deg, #fa5956, #fb8650);
}
.local-nav li:nth-child(2) {
  background-image: linear-gradient(180deg, #3c83fa, #50b2fa);
}
.local-nav li:nth-child(3) {
  background-image: linear-gradient(0deg, #66a4ff, #5e80ff);
}
.local-nav li:nth-child(4) {
  background-image: linear-gradient(180deg, #2fc3b6, #52d9b3);
}
.local-nav li:nth-child(5) {
  border-top-right-radius: 8px;
  background-image: linear-gradient(0deg, #ffa846, #ff8939 99%);
}

/* 主导航样式 */
.nav {
  border-radius: 8px;
  overflow: hidden;
  margin: 0 4px 3px;
}
.nav-row {
  display: flex;
  height: 88px;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nav-item a {
  flex: 1;
  text-align: center;
  line-height: 44px;
  color: #fff;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
}
.nav-item a:first-child {
  border-bottom: 1px solid #fff;
}
.nav-item:first-child a {
  border-bottom: none;
  background: url("https://webresource.c-ctrip.com/NFES/html5/1636624442314/_next/serverStatic/img/nav.png")
    no-repeat center bottom;
  background-size: 28px auto;
}
/* 选中前两个加一个右边框,n从0 开始，整体计算的值要大于0 */
.nav-item:nth-child(-n + 2) {
  border-right: 1px solid #fff;
}
/* 给每个div增加一个渐变的底色 */
.nav-row:nth-child(1) {
  background: -webkit-linear-gradient(left, #fa5a55, #fa994d);
}
.nav-row:nth-child(2) {
  background: -webkit-linear-gradient(left, #4b90ed, #53bced);
  margin: 3px 0;
}
.nav-row:nth-child(3) {
  background: -webkit-linear-gradient(left, #34c2a9, #6cd559);
}

/* 块级导航区域 */
.shortcut-nav {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  margin: 0 4px;
  border-radius: 8px;
  padding: 5px;
  background-color: #fff;
}
.shortcut-nav li {
  flex: 20%;
}
.shortcut-nav li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
}
.shortcut-nav-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  background-size: 28px auto;
  background-repeat: no-repeat;
  background-image: url("https://webresource.c-ctrip.com/NFES/html5/1636624442314/_next/serverStatic/img/nav.png");
  background-position: 0 -336px;
}
